package com.changgou.entity;

import org.springframework.stereotype.Component;

/**
 * 返回码
 */
@Component
public class StatusCode {

    public static final int OK = 20000;//成功
    public static final int ERROR = 20001;//失败
    public static final int LOGINERROR = 20002;//用户名或密码错误
    public static final int ACCESSERROR = 20003;//权限不足
    public static final int REMOTEERROR = 20004;//远程调用失败
    public static final int REPERROR = 20005;//重复操作


    public static final String SELECT_OK = "查询成功";
    public static final String SELECT_ERROR = "查询失败";
    public static final String ADD_OK = "添加成功";
    public static final String UPDATE_OK = "修改成功";
    public static final String DELETE_OK = "删除成功";


    //ES
    public static final String CREATE_DATE_OK = "创建索引库成功";
    public static final String ADD_DATE_OK = "添加索引数据成功";
}
